package com.ny.service.impl;

import com.ny.Dao.impl.OrderDao;
import com.ny.Dao.impl.OrderDaoImpl;
import com.ny.entity.Order;

import java.sql.SQLException;

public class OrderServiceImpl implements OrderService {
    private OrderDao orderDao=new OrderDaoImpl();
    public OrderServiceImpl () throws SQLException, ClassNotFoundException {

    }
    @Override
    public int addOrder(Order order) throws SQLException, ClassNotFoundException {
        return orderDao.addOrder(order);
    }


}
